import App from "@/utils/axios.ts";

// API 接口枚举
enum API {
  LIST_ROUTERS = "menu/side_menu",
  GET_LOGIN_USER_INFO = "/auth/getLoginUserInfo"
}

/**
 * 获取路由菜单列表
 */
export const listRouters = () => {
  return App.get(API.LIST_ROUTERS);
};

/**
 * 获取登录用户信息
 */
export const getLoginUserInfo = () => {
  return App.get(API.GET_LOGIN_USER_INFO);
};